﻿using Customer.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Customer.Infrstructre.SalesManager
{
    public class SalesRepository:BaseRepository<Sales>, ISalesRepository
    {
        public SalesRepository(EFCoreDBcontext db) : base(db) { }


        public async Task<int> AddAsync(Sales entity)
        {
            return await base.AddAsync(entity);
        }

        public async Task<int> DelAsync(Sales entity)
        {
            return await base.DelAsync(entity);
        }

        public async Task<List<Sales>> GetAllAsync()
        {
            return await base.GetAllAsync();
        }

        public async Task<List<Sales>> GetAsync(Expression<Func<Sales, bool>> expr)
        {
            return await base.GetAsync(expr);
        }

        public async Task<Sales> GetModelAsync(int id)
        {
            return await base.GetModelAsync(id);
        }

        public async Task<int> Update(Sales entity)
        {
            return await base.Update(entity);
        }


    }
}
